import { Column, Entity } from 'typeorm'
import { BaseEntity } from './BaseEntity'

@Entity()
export class SchoolInfo extends BaseEntity {

  @Column({ length: 12, name: 'principal_name', default: 'x校长' })
  public principalName!: string

  @Column({ name: 'principal_phone_number' })
  public principalPhoneNumber!: number

  @Column({ length: 32, name: 'principal_wechat' })
  public principalWechat!: string

  @Column({ name: 'principal_wechat_qrcode' })
  public principalWechatQrCode!: string

  @Column({ length: 12, name: 'head_name', default: 'x老师' })
  public headName!: string

  @Column({ name: 'head_phone_number' })
  public headPhoneNumber!: number

  @Column({ length: 32, name: 'head_wechat' })
  public headWechat!: string

  @Column({ name: 'head_wechat_qrcode' })
  public headWechatQrCode!: string

  @Column()
  public address!: string

  @Column({ comment: '学校介绍', type: 'text' })
  public introduce!: string

  @Column({ comment: '学校图片介绍' })
  public banners!: string

}
